package cn.iocoder.yudao.module.product.convert.calculation;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.product.controller.admin.calculation.vo.*;
import cn.iocoder.yudao.module.product.dal.dataobject.calculation.CalculationDO;

/**
 * 产品碳核算 Convert
 *
 * @author wcl
 */
@Mapper
public interface CalculationConvert {

    CalculationConvert INSTANCE = Mappers.getMapper(CalculationConvert.class);

    CalculationDO convert(CalculationCreateReqVO bean);

    CalculationDO convert(CalculationUpdateReqVO bean);

    CalculationRespVO convert(CalculationDO bean);

    List<CalculationRespVO> convertList(List<CalculationDO> list);

    PageResult<CalculationRespVO> convertPage(PageResult<CalculationDO> page);

}
